function addToLog(text) {
    var el = document.getElementById("curlog");
    var nolog = document.getElementById("nolog");
    nolog.style.display = "none";
    el.innerHTML = el.innerHTML + text;
}
function toggle(id) {
    var extEl = Ext.get(id);
    extEl.setVisibilityMode(Ext.Element.DISPLAY);
    extEl.toggle(true);
    
    try {
        document.nlForm.nl.focus();
    }
    catch (err) {}
}

function viewPhoto(url) {
    var win = window.open(url);
}

function photoAdded() {
    alert("Thanks for your photo.  It will be visible in a few minutes.");
    document.npForm.reset();
}

function switchTab(tab) {
	tabView.set('activeTab', tab)
}
